﻿using System;
using OdaOperation.Core.Parameters.Base;

namespace OdaOperation.Core.Parameters
{
    public abstract class AbstractParameter : ICheck
    {
        public string LayerName { get; set; }

        public string BlockName { get; set; }

        public virtual void Check()
        {
            if (string.IsNullOrEmpty(LayerName))
            {
                throw new ArgumentNullException("LayerName");
            }

            if (string.IsNullOrEmpty(BlockName))
            {
                throw new ArgumentNullException("BlockName");
            }
        }
    }
}